<template>
<div>
    <title-bar title="各类距离指标"></title-bar>
    <params-table :data="tableData"></params-table>
</div>
</template>

<script>
import TitleBar from '@/components/TitleBar'
import ParamsTable from '@/components/ParamsTable'
import {
    mapGetters
} from 'vuex'
export default {
    name: 'ClusterTable',
    components: {
        TitleBar,
        ParamsTable
    },
    computed: {
        ...mapGetters({
            modelDetail: 'common/getModelDetail'
        })
    },
    data () {
        return {
            tableData: {
                rows: [],
                columns: []
            }
        }
    },
    created () {
        this.init()
    },
    methods: {
        init () {
            let { rows, columns } = this.modelDetail.summary.evaSummary.clusterMeasure
            this.tableData = {
                rows,
                columns
            }
        }
    }
}
</script>
